<?php
function smarty_modifier_website($string, $type)
{
	if(trim($string) == "" || trim($string) == 'http://') {
		return $type == "label" ? "none" : "javascript:void(0);";
	} 
	
	$string = "http://" . $string;
	return preg_replace("/http:\/\/([^\/]*)/", "http:", $string);
    #return str_replace("http://http:", "http:", $string);
}

?>
